package com.yunke.entity.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

/**
 * 角色DTO
 * 
 * @author yunke
 * @since 1.0.0
 */
@Data
@Schema(name = "YunkeRoleDto", description = "角色DTO")
public class YunkeRoleDto {

    @Schema(description = "角色ID")
    private Long id;

    @NotBlank(message = "角色编码不能为空")
    @Size(max = 20, message = "角色编码长度不能超过20个字符")
    @Schema(description = "角色编码", required = true)
    private String roleCode;

    @NotBlank(message = "角色名称不能为空")
    @Size(max = 50, message = "角色名称长度不能超过50个字符")
    @Schema(description = "角色名称", required = true)
    private String roleName;

    @Size(max = 200, message = "角色描述长度不能超过200个字符")
    @Schema(description = "角色描述")
    private String description;

    @Schema(description = "角色级别")
    private Integer level;

    @Schema(description = "权限列表")
    private String permissions;

    @Schema(description = "菜单ID列表")
    private String menuIds;

    @Schema(description = "数据权限范围（1全部 2部门 3本人）")
    private Integer dataScope;

    @Schema(description = "是否启用（0否 1是）")
    private Boolean enabled;

    @Schema(description = "排序号")
    private Integer sortOrder;

    @Schema(description = "备注")
    private String remark;
} 